package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Email 2781921355@qq.com
 * @Author 马忠豪
 * @Date 2023/8/11 11:20
 */
@Data
@TableName(value = "consumer")
public class Consumer implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String img;
    private String consumerNo;
    private String sex;
    private String signature;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date startDate;
    private String status;
    private Integer roleId;
    private Integer teamId;
    private String idCode;
    private String consumerName;
    private String password;
}
